<?
	if($model->id==0){
		$hidden['parent_id']=$this->input->get('parent_id');
	}
?>

<div class='contentheader'>Page Formular</div>
<?
$page=$model;

echo $formheader;

echo form::open(CONTDIR.'page/action/move_to/'.$page->id, array(), $hidden);
echo form::open_fieldset();

$allpages=$page->get_pulldown_list();

echo '<p>';
echo form::label('new_parent_id', 'Move To');
echo form::dropdown('new_parent_id',$allpages, $page->parent_id);
echo form::button('doit', 'Do it', 'class="submit_button"');
echo '</p>';


echo form::close();
?>